package org.keyyond.ms.scheduler.jobs;

import org.keyyond.ms.scheduler.service.MsSapDataService;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 调用sap服务(sap 读取excel数据后调用esb保存到DCP)
 * @author baofanfan
 *
 */
@DisallowConcurrentExecution //非并发执行
public class ReadSapSaveToDCPJob implements BaseJob{
	@Autowired
	private MsSapDataService MsSapDataService;
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		// TODO Auto-generated method stub
		MsSapDataService.sendDataToDCP();
	}

}
